﻿@model NineSeas.Models.ChapterPart
@{
    Style.Require("jQueryUI_Orchard");
    Style.Require("NineSeas.Common");
    Style.Require("NineSeas.Reader");
    Style.Require("NineSeas.Authoring");
    Style.Require("NineSeas.Authoring.Book.Edit");

    Script.Require("jQuery").AtHead();
    Script.Require("jQueryUI");
    Script.Require("NineSeas.Common");
    Script.Require("NineSeas.InplaceMessage");
    Script.Require("NineSeas.Authoring.Book.Edit");
    Script.Require("NineSeas.CommandBar");
    Script.Require("FriendUrl");
    Script.Require("TinyMce");       
}
<fieldset>
    @Html.HiddenFor(x => x.BookId)
    <div class="nineseas-field-label">@T("Title")</div>
    <div class="nineseas-field-input">
        @Html.EditorFor(x => x.Title)        
        @Html.ValidationMessageFor(x => x.Title)
    </div>   
    <div class="nineseas-field-label">@T("Sort Order")</div>
    <div class="nineseas-field-input">
        @Html.EditorFor(x => x.SortOrder)        
        @Html.ValidationMessageFor(x => x.SortOrder)
    </div>       
    <div class="nineseas-field-label">@T("Content")</div>
    <div class="nineseas-field-input" id="editor-container">
        @Html.TextAreaFor(m => m.Content, 25, 80, new Dictionary<string,object> {
		            {"class", "html tinymce"},
                    {"style", "width:100%; height: 350px"}
	                })
    </div>
    <div id="throbber">
        <div class="curtain"></div>
        <div class="curtain-content">
            <div>
                <h1>@T("Processing ...")</h1>
                <p>
                    <img src="@Href("~/Modules/NineSeas/images/synchronizing.gif")" alt="" />
                </p>
            </div>
        </div>
    </div>
</fieldset>